package com.hnxxxy.rewardmgr.service;

import com.hnxxxy.rewardmgr.bean.ExcelBean;
import com.hnxxxy.rewardmgr.bean.LuckDraw;
import com.hnxxxy.rewardmgr.bean.NumberConfig;
import com.hnxxxy.rewardmgr.bean.RewardLevel;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface RewardService {
    List<RewardLevel> loadRewardLevel();

    List<NumberConfig> loadNumberConfig(String name,String numbers,String rwd_state);

    int deleteRewardLevel(int id);

    int updateRewardLevel(RewardLevel rwd);

    void truncateRatioConfig();

    int insertRewardLevel(RewardLevel rwd);

    int insertRewardNotFond(RewardLevel rwd);

    List<NumberConfig> numberConfig();

    List<NumberConfig> numberConfig(int role);

    List<NumberConfig> numberRatioConfig(int rwd_state);

    RewardLevel levelConfigById(int id);

    int deleteNumberConfig(String id);

    int updateNumberConfig(NumberConfig numberConfig);

    int insertNumberConfig(NumberConfig numberConfig);

    int insertRatio(List<NumberConfig> numberConfig);

    List<NumberConfig> showReward();

    int deleteRwdRatioConfig(int id);

    int batchInsertNumberConfig(List<ExcelBean> list);
    
    int sysSMSConfig();

    Map<String, Object> getAll();

    Map<String, List<NumberConfig>> getRatioNumber(int id);

    int cleanNumberConfig();

    int batchDeleteLevel(List<Integer> list);
}